import 'package:flutter/material.dart';
import 'package:flutter_paint/day_3/page_canvas_draw.dart';
import 'package:flutter_paint/day_3/page_painter.dart';

///
/// [author]: liMing
/// [Date]: 2021-08-02  12:27
///
class PageCanvasTransform extends StatefulWidget {
  @override
  _PageCanvasTransformState createState() => _PageCanvasTransformState();
}

class _PageCanvasTransformState extends State<PageCanvasTransform> {

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child:  CustomPaint(
          size: Size(MediaQuery.of(context).size.width,MediaQuery.of(context).size.height),
          painter: PagePainter(),
        ),
      ),
       // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
